import { Condition } from '../condition';
import { ZeprideWorkflowNodePage } from '../zepride-workflow-node-page';

export interface FlowNode {
    beginTime?: number;
    endTime?: number;
    id?: string;
    name?: string;
    permitGroupName?: string;
    permitId?: string;
    permitName?: string;
    status?: FlowNodeStatus;
    type?: string;
    updateTime?: number;
    workflowId?: string;
    openCondition?: Condition;
    closeCondition?: Condition;
    closeConditionId?: string;
    childrenWorkflowId?: string;
    pages: ZeprideWorkflowNodePage[];
    extends?: any;
}

export declare type FlowNodeStatus = 'wait' | 'process' | 'finish' | 'error';
